﻿<UserControl x:Class="FileExplorer.WPF.Views.AddBookmarksView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:uc="clr-namespace:FileExplorer.WPF.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FileExplorer3.WPF;component/Themes/Common/Buttons.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style TargetType="Button" >
                <Setter Property="Template" Value="{StaticResource BaseButton}" />
            </Style>
        </ResourceDictionary>
        
        <!--<Style TargetType="TextBlock">
            <Setter Property="Margin" Value="5,5" />
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="Margin" Value="5,5" />
        </Style>-->
    </UserControl.Resources>
    <Grid Margin="5">
        <Grid.ColumnDefinitions>            
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="*" MinWidth="200" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="5" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>        
        <TextBlock FontFamily="Arial" FontWeight="SemiBold" Text="Bookmark added." Grid.ColumnSpan="3"  Margin="0,5"  />
        <!--<TextBlock FontWeight="Black" Text="{Binding State}" FontSize="20" Grid.ColumnSpan="3"   />-->
        <Label Content="_Label:" FocusManager.FocusedElement="{Binding ElementName=tbLabel}" 
               VerticalContentAlignment="Center" VerticalAlignment="Stretch"
               Grid.Row="1" Grid.Column="0" />
        <TextBox x:Name="tbLabel" Text="{Binding BookmarkLabel, UpdateSourceTrigger=PropertyChanged}"                  
                 Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Margin="5"  />
        <Label Content="_Folder:" Grid.Row="2" Grid.Column="0"
                VerticalContentAlignment="Center" VerticalAlignment="Stretch"
               />        
        <uc:Explorer Mode="DirectoryPickerCombo" x:Name="expFolderPicker" Margin="5"                     
                     Grid.Row="2" Grid.Column="2" />
        <Button x:Name="GotoBookmarkDirectory" Content="Go" Grid.Row="2" Grid.Column="3" Margin="0,0,5,0"  VerticalContentAlignment="Center" />
        <DockPanel Grid.Row="5" Grid.ColumnSpan="3" Grid.Column="1" LastChildFill="False">            
            <!--<Button x:Name="UpdateBookmark" Content="Update" 
                    Visibility="{Binding IsUpdateBookmarkEnabled, Converter={StaticResource btv}}"
                    DockPanel.Dock="Right" Padding="5" Margin="5" />-->
            <Button x:Name="RemoveBookmark" Content="Remove" DockPanel.Dock="Right" Padding="5" Margin="5,0" />            
        </DockPanel> 
    </Grid>
</UserControl>
